Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: calldata encoding fails for tuple params #333

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

kiriyaga-txfusion
Copy link
Contributor

@kiriyaga-txfusion kiriyaga-txfusion commented Nov 27, 2024

What ❔

This PR implements support for encoding non-primitive input types. With this update, all input data, including tuples, arrays, and combinations of various types, will be correctly encoded.

Why ❔

In the current version of the block explorer, users encounter an error when input data includes complex objects or arrays.

For show we will use: https://explorer.zksync.io/tx/0xe39dbc98b41bb22620b78e3a3848ab34982310f9564f27d1e809cfdd461fa54e

Example without fix:
image

Example with fix:
image

fixes #321

Checklist

  • [+ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • [+ ] Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.

Copy link

github-actions bot commented Nov 27, 2024

API E2E Test Results

207 tests   207 ✅  19s ⏱️
 14 suites    0 💤
  1 files      0 ❌

Results for commit 028d808.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2024

Unit Test Results

    4 files    264 suites   11m 35s ⏱️
2 147 tests 2 146 ✅ 1 💤 0 ❌
2 361 runs  2 360 ✅ 1 💤 0 ❌

Results for commit 028d808.

♻️ This comment has been updated with latest results.

@kiriyaga-txfusion kiriyaga-txfusion added bug Something isn't working app App package labels Nov 27, 2024
Copy link

github-actions bot commented Nov 27, 2024

Visit the preview URL for this PR:
https://staging-scan-v2--pr-333-lbki0uq2.web.app

@kiriyaga-txfusion kiriyaga-txfusion self-assigned this Nov 27, 2024
@vasyl-ivanchuk vasyl-ivanchuk force-pushed the kiriyaga-txfusion-tuple-array-input-data branch from b63695d to 028d808 Compare January 21, 2025 17:44
@vasyl-ivanchuk
Copy link
Collaborator

@kiriyaga-txfusion please, configure GitHub signed commits. PRs with at least one unsigned commit cannot be merged. I squashed all commits in this PR into a single signed commit to merge the changes.

@vasyl-ivanchuk vasyl-ivanchuk requested review from vasyl-ivanchuk and removed request for Romsters January 21, 2025 17:59
@vasyl-ivanchuk vasyl-ivanchuk merged commit 237bdf1 into main Jan 21, 2025
23 checks passed
@vasyl-ivanchuk vasyl-ivanchuk deleted the kiriyaga-txfusion-tuple-array-input-data branch January 21, 2025 18:00
Copy link

🎉 This PR is included in version 2.60.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app App package bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calldata encoding fails for tuple params
2 participants